<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 头部栏 -->
<div class="container-fluid">
	<ol class="breadcrumb" style="width: 100%;">
		<li><a href="#">(｡･∀･)ﾉﾞ嗨！欢迎来到天天淘!</a></li>
		<c:if test="${user!=null}">
			<li>${user.username}</li>
			<li><a href="${pageContext.request.contextPath}/pages/user/updateUser.jsp">个人资料</a></li>
			<li><a href="${pageContext.request.contextPath}/user/logout.do">注销</a></li>
		</c:if>
		<c:if test="${user==null}">
		<li><a href="${pageContext.request.contextPath}/pages/user/login.jsp">请登录</a></li>
		<li><a href="register.jsp">注册</a></li>
		</c:if>
		<li class="dropdown col-xs-offset-10">
			<button class="btn btn-link dropdown-toggle" type="button"
				data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
				我的购物 <span class="caret"></span>
			</button>
			<ul class="dropdown-menu dropdown-menu-left"
				aria-labelledby="dropdownMenu1">
				<li><a href="${pageContext.request.contextPath}/cart/getMyCart.do?userId=${user.id}">购物车</a></li>
				<li><a href="${pageContext.request.contextPath}/order/getMyOrder.do?userId=${user.id}">订单</a></li>
			</ul>
		</li>
	</ol>
</div>